﻿<table class="tableForm">
    <tr>
        <th width="25%">
            启用门户验证:</th>
        <td class="tdClass">
            @Html.DevExpress().CheckBox(settings =>
      {
          settings.Name = "OA_SSOUse";
          settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
          settings.Checked = ViewData["OA_SSOUse"].ToString() == "Y" ? true : false;
          settings.Properties.ClientSideEvents.CheckedChanged = "function(s,e){OA_SSOUse_CheckedChanged(s,e)}";
      }).GetHtml()
        </td>
    </tr>
    <tr>
        <th>
            门户验证提交地址:</th>
        <td  class="tdClass">
            @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "OA_SSOLoginAddress";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
                   settings.Text = ViewData["OA_SSOLoginAddress"].ToString();
                   settings.ClientEnabled = ViewData["OA_SSOUse"].ToString() == "Y" ? true : false; 
               }).GetHtml()
        </td>
    </tr>
    <tr>
        <th>
            列表显示修改日期:</th>
        <td  class="tdClass">
            @Html.DevExpress().CheckBox(settings =>
      {
          settings.Name = "FIsShowGrid";
          settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
          settings.Checked = ViewData["FIsShowGrid"].ToString() == "Y" ? true : false;

      }).GetHtml()
        </td>
    </tr>
     <tr style="display:none;">
        <th>
            文件阅办和重点督查超期自动审批天数:</th>
        <td class="tdClass">
              @Html.DevExpress().SpinEdit(settings =>
         {
             settings.Name = "OA_TASK_CHECK_DAYS";
             settings.Width = System.Web.UI.WebControls.Unit.Pixel(70);
             settings.Number = int.Parse(ViewData["OA_TASK_CHECK_DAYS"].ToString());
             settings.Properties.MinValue = 0;
             settings.Properties.AllowNull = false;
         }).GetHtml()
        </td>
    </tr>
</table>
